#ifndef PLISTPARSER_H
#define PLISTPARSER_H

#include <QStringList>
#include <QDomDocument>
#include <QFile>
#include <QSize>
#include <QPoint>
#include "CommonMarcro.h"




class PlistParser : public QObject
{
    Q_OBJECT
public:
    PlistParser(QObject *parent = 0);
    ~PlistParser();

    bool parsePlistFile(const QString& fileName);
    inline const PlistFrameInfoList& getPlistFrameInfoList() {return m_sourceFrameList;}
private:
    void parseZwoptexPList(QDomNode& dictNode,QString fileName);
    void parseTexturePackPlist(QDomNode& dictNode,QString fileName);
private:
    void parseSizeInfo(QDomElement& sizeElement, QRectF& rect);
    void parsePointInfo(QDomElement& pointElement, QPointF& point);
private:
    PlistFrameInfoList m_sourceFrameList;

signals:
    void notifyPlistDataChanged();
};

#endif // PLISTPARSER_H
